#import "AppDelegate.h"
#import "dfhgwhruebvhrheyavenuetyre.h"
#import <FirebaseCore/FIRApp.h>
#import <IQKeyboardManager/IQKeyboardManager.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [self initSDK];
    [self listenNetStatus];
    return YES;
}
- (void)initSDK {
    if (![FIRApp defaultApp]) {
        [FIRApp configure];
    }
    [IQKeyboardManager sharedManager].shouldResignOnTouchOutside = YES;
    [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
}
- (void)listenNetStatus {
    [[AFNetworkReachabilityManager sharedManager] startMonitoring];
    [[AFNetworkReachabilityManager sharedManager] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
        self.status = status;
    }];
}
#pragma mark - UISceneSession lifecycle
- (void)applicationDidEnterBackground:(UIApplication *)application {
    if (self.inBasicAuth) {
        [dfhgwhruebvhrheyavenuetyre updateCount:backend_num byType:1];
    }
    if (self.inIdentifityAuth) {
        [dfhgwhruebvhrheyavenuetyre updateCount:backend_num_id byType:1];
    }
}
#pragma mark - UISceneSession lifecycle
- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}
- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
}
@end
